﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SmartSpace.WebForm.SystemTheme
{
    public class SystemTheme : ITheme
    {
        private IMainPanel _mainPanel;

        public IMainPanel GetMainPanel(System.Web.UI.Page page)
        {
            if (_mainPanel == null)
            {
                _mainPanel = page.LoadControl("~/_app/_webform/themes/system/MainPanel.ascx") as IMainPanel;
            }

            return _mainPanel;
        }

        public Guid GetThemeID()
        {
            return new Guid("{0B57ECCF-4AE6-439C-B061-8CB686AADE19}");
        }

        public string GetThemeName()
        {
            return "SmartSpace Asp.net system theme";
        }
    }
}